home *** CD-ROM | disk | FTP | other *** search
- class §#76§ extends MovieClip
- {
- static var §#3§ = false;
- var color = 16777215;
- var display = "";
- function §#76§()
- {
- super();
- this.draw();
- if(eval("#76")["#3"])
- {
- eval("#0").log("created " + this.toString());
- }
- }
- function toString()
- {
- return "[ImageFont " + this._name + ": " + "\"f" + this.display + "\"/" + this._currentframe + " 0x" + this.color.toString(16) + "]";
- }
- function hide()
- {
- this._visible = false;
- }
- function show()
- {
- this._visible = true;
- }
- function draw(display)
- {
- if(display == this.display)
- {
- return undefined;
- }
- this.display = display;
- if(display == "" || display == " " || display == undefined)
- {
- this.gotoAndStop("blank");
- }
- else if(typeof display == "number")
- {
- this.gotoAndStop("f" + display);
- }
- else
- {
- this.gotoAndStop(display);
- }
- }
- function setColor(color)
- {
- this.color = color;
- var _loc2_ = eval("#110")["#365"](color);
- var _loc3_ = _loc2_.r * 100;
- var _loc5_ = _loc2_.g * 100;
- var _loc4_ = _loc2_.b * 100;
- if(eval("#76")["#3"])
- {
- eval("#0").log("setting color of " + this + " to " + _loc3_ + "," + _loc5_ + "," + _loc4_);
- }
- var _loc6_ = new Color(this);
- var _loc7_ = {ra:_loc3_,ga:_loc5_,ba:_loc4_};
- _loc6_.setTransform(_loc7_);
- }
- }
-